class Solution {
public:
    bool canAliceWin(vector<int>& nums) {
        int Alice_1 = 0, Bob_1 = 0, Alice_2 = 0, Bob_2 = 0;
        for(int &x : nums)
        {
            // Alice选择个位数
            if(x < 10) Alice_1 += x;
            else Bob_1 += x;

            // Alice选择两位数
            if(x > 10) Alice_2 += x;
            else Bob_2 += x;
        }
        return Alice_1 > Bob_1 || Alice_2 > Bob_2;
    }
};